{"ast":null,"code":"import canUseDom from \"rc-util/es/Dom/canUseDom\";\nimport { isStyleSupport } from \"rc-util/es/Dom/styleChecker\";\nexport const canUseDocElement = () => canUseDom() && window.document.documentElement;\nexport { isStyleSupport };\nlet flexGapSupported;\nexport const detectFlexGapSupported = () => {\n  if (!canUseDocElement()) {\n    return false;\n  }\n  if (flexGapSupported !== undefined) {\n    return flexGapSupported;\n  }\n  // create flex container with row-gap set\n  const flex = document.createElement('div');\n  flex.style.display = 'flex';\n  flex.style.flexDirection = 'column';\n  flex.style.rowGap = '1px';\n  // create two, elements inside it\n  flex.appendChild(document.createElement('div'));\n  flex.appendChild(document.createElement('div'));\n  // append to the DOM (needed to obtain scrollHeight)\n  document.body.appendChild(flex);\n  flexGapSupported = flex.scrollHeight === 1; // flex container should be 1px high from the row-gap\n  document.body.removeChild(flex);\n  return flexGapSupported;\n};","map":{"version":3,"names":["canUseDom","isStyleSupport","canUseDocElement","window","document","documentElement","flexGapSupported","detectFlexGapSupported","undefined","flex","createElement","style","display","flexDirection","rowGap","appendChild","body","scrollHeight","removeChild"],"sources":["/data/messenger.client/node_modules/antd/es/_util/styleChecker.js"],"sourcesContent":["import canUseDom from \"rc-util/es/Dom/canUseDom\";\nimport { isStyleSupport } from \"rc-util/es/Dom/styleChecker\";\nexport const canUseDocElement = () => canUseDom() && window.document.documentElement;\nexport { isStyleSupport };\nlet flexGapSupported;\nexport const detectFlexGapSupported = () => {\n  if (!canUseDocElement()) {\n    return false;\n  }\n  if (flexGapSupported !== undefined) {\n    return flexGapSupported;\n  }\n  // create flex container with row-gap set\n  const flex = document.createElement('div');\n  flex.style.display = 'flex';\n  flex.style.flexDirection = 'column';\n  flex.style.rowGap = '1px';\n  // create two, elements inside it\n  flex.appendChild(document.createElement('div'));\n  flex.appendChild(document.createElement('div'));\n  // append to the DOM (needed to obtain scrollHeight)\n  document.body.appendChild(flex);\n  flexGapSupported = flex.scrollHeight === 1; // flex container should be 1px high from the row-gap\n  document.body.removeChild(flex);\n  return flexGapSupported;\n};"],"mappings":"AAAA,OAAOA,SAAS,MAAM,0BAA0B;AAChD,SAASC,cAAc,QAAQ,6BAA6B;AAC5D,OAAO,MAAMC,gBAAgB,GAAG,MAAMF,SAAS,EAAE,IAAIG,MAAM,CAACC,QAAQ,CAACC,eAAe;AACpF,SAASJ,cAAc;AACvB,IAAIK,gBAAgB;AACpB,OAAO,MAAMC,sBAAsB,GAAG,MAAM;EAC1C,IAAI,CAACL,gBAAgB,EAAE,EAAE;IACvB,OAAO,KAAK;EACd;EACA,IAAII,gBAAgB,KAAKE,SAAS,EAAE;IAClC,OAAOF,gBAAgB;EACzB;EACA;EACA,MAAMG,IAAI,GAAGL,QAAQ,CAACM,aAAa,CAAC,KAAK,CAAC;EAC1CD,IAAI,CAACE,KAAK,CAACC,OAAO,GAAG,MAAM;EAC3BH,IAAI,CAACE,KAAK,CAACE,aAAa,GAAG,QAAQ;EACnCJ,IAAI,CAACE,KAAK,CAACG,MAAM,GAAG,KAAK;EACzB;EACAL,IAAI,CAACM,WAAW,CAACX,QAAQ,CAACM,aAAa,CAAC,KAAK,CAAC,CAAC;EAC/CD,IAAI,CAACM,WAAW,CAACX,QAAQ,CAACM,aAAa,CAAC,KAAK,CAAC,CAAC;EAC/C;EACAN,QAAQ,CAACY,IAAI,CAACD,WAAW,CAACN,IAAI,CAAC;EAC/BH,gBAAgB,GAAGG,IAAI,CAACQ,YAAY,KAAK,CAAC,CAAC,CAAC;EAC5Cb,QAAQ,CAACY,IAAI,CAACE,WAAW,CAACT,IAAI,CAAC;EAC/B,OAAOH,gBAAgB;AACzB,CAAC"},"metadata":{},"sourceType":"module"}